<?php
if (!defined('BASEPATH'))
    exit('No direct script access allowed');
/**
 * Ham load nhanh view tuong duong $this->load->view()
 * @param string $template
 * @param array $data
 */
function view_load($template, $data=null)
{
    if(!file_exists(APPPATH . 'views/' . $template . '.php')) return;
    $CI = & get_instance();
    if(is_array($data)) $CI->load->view($template, $data);
    $CI->load->view($template);
}

?>
